/**
 * @file mapping_factory_test.cc
 * @author DustinKsi (dustinksi@126.com)
 * @brief
 * @version 0.1
 * @date 2019-12-12
 *
 * @copyright Copyright (c) 2019
 *
 */

#include "venus/mapping/mapping_factory.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"

namespace VEnus {
namespace Mapping {

TEST(MappingFactory, CreateInstance) {
  MappingOptions options;
  options.set_brand(FullGraph);

  MappingFactory factory;
  factory.RegisterMappingFactory();
  EXPECT_NE(factory.CreateMapping(options), nullptr);
}
}
}

int main(int argc, char **argv) {
  google::InitGoogleLogging(argv[0]);
  FLAGS_stderrthreshold = google::INFO;
  ::testing::InitGoogleTest(&argc, argv);
  return RUN_ALL_TESTS();
}